package com.example.entity;

import lombok.Data;
import java.util.List;

@Data
public class User {
    private Long id;
    private String loginname;
    private String name;
    private String email;
    private Integer status;
    private String password;
    private String mobilephone;
    // 关联角色
    private List<Role> roles;
    // 关联权限（通过角色间接获取）
    private List<Menu> menus;
}